package org.springframework.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringConfig {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:beans.xml");
		User user = context.getBean("user", User.class);
		System.out.println(user);
	}
}
